package com.hzit.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Component
@RabbitListener(queues = "sgyy")
public class MyListener07 {

	//1. 接受以goods开头以log结尾的消息
	@RabbitHandler
	public void getMessage(String message){
		System.out.println("正在接受消息[三国演义]:" + message);
	}
}
